import request from '@/utils/request'

// 查询已选课程列表
export function listCourseselected(query) {
  return request({
    url: '/course/courseselected/list',
    method: 'get',
    params: query
  })
}

// 查询已选课程详细
export function getCourseselected(id) {
  return request({
    url: '/course/courseselected/' + id,
    method: 'get'
  })
}

export function oneClickScheduling() {
  return request({
    url: '/course/courseselected/oneClickScheduling/',
    method: 'get'
  })
}

// 新增已选课程
export function addCourseselected(data) {
  return request({
    url: '/course/courseselected',
    method: 'post',
    data: data
  })
}

// 修改已选课程
export function updateCourseselected(data) {
  return request({
    url: '/course/courseselected',
    method: 'put',
    data: data
  })
}

// 删除已选课程
export function delCourseselected(id) {
  return request({
    url: '/course/courseselected/' + id,
    method: 'delete'
  })
}
